package com.hejielife.threadpermessage3;

/**
 * 2019年8月2日 下午5:36:04
 * 
 * @author hejielife
 * @despribe Helper
 */
public class Helper {
	public void handle(int count, char c) {
		System.out.println("        handle(" + count + ", " + c + ") BEGIN");
		for (int i = 0; i < count; i++) {
			slowly();
			System.out.print(c);
		}
		System.out.println("");
		System.out.println("        handle(" + count + ", " + c + ") END");
	}

	private void slowly() {
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
		}
	}
}
